package com.caomt.dubboprovidertest.service;

import com.caomt.dubbo.service.api.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Method;

@DubboService(version = "1.0.0")
public class DemoServiceImpl implements DemoService {

    @Override
    public String sayHello(String name) {
        System.out.println("init : " + name);
        return "hello " + name;
    }

    @Override
    public String sayWorld(String name) {
        System.out.println("init : " + name);
        return "world " + name;
    }

}
